#header {
    user-select: none;
}

#main-wrapper {
    position: relative
}

#loading {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fafafa;
    width: 500px;
    height: 150px;
    z-index: 10000;
}

#loading>div {
    text-align: center;
    width: 400px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -70%);
    user-select: none;
}

#loading h3 {
    font-size: 2em;
    margin-bottom: 0.5em;
    margin-top: 1em 0.7em;
}

#load-progress {
    transition: none;
}

#header .back-link {
    position: relative;
    top: -0.05em;
    padding-right: 0.5em;
    text-decoration: none;
}

#header .back-link svg {
    width: 25px;
}

.navbar-light>.nav-link {
    color: rgba(0, 0, 0, .5)
}

.custom-popup {
    display: none;
    position: fixed;
    background: #f8f9fa;
}

#options.custom-popup {
    top: 5em;
    left: 1em;
    min-width: 500px;
    max-width: 1000px;
    width: 28%;
}

#layers.custom-popup {
    top: 5em;
    right: 1em;
    min-width: 300px;
    max-width: 500px;
    width: 15%;
}

.custom-popup a.custom-popup-close {
    display: block;
    position: absolute;
    right: 4px;
    top: 4px;
    padding: 0.2em 0.5em;
    z-index: 1000;
}

.options-description {
    font-size: 0.8em;
    color: #444;
}

.options-description>a {
    font-size: 0.9em;
    padding: 0 1em;
    cursor: pointer;
    color: #26e !important;
}

#options-dragger {
    min-width: 6px;
    max-width: 6px;
    cursor: ew-resize;
    background: #fcfbfb;
    transition: background 1s ease;
}

#options-dragger.minimize {
    min-width: 12px;
    max-width: 12px;
    background: #dfdfdf;
}

#options-dragger #options-dragger-label {
    display: none;
}

#options-dragger.minimize #options-dragger-label {
    display: block;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    position: absolute;
    top: 50vh;
    color: #888;
    transform: translate(0, -50%);
    left: -4px;
}

.custom-popup-container {
    padding: 1em;
    overflow-y: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    position: relative;
}

#options .input-group-text {
    background: #fafafa;
    color: #444;
    font-size: 0.8em;
    border: none;
}

#options .input-group-prepend {
    padding-right: 0.5em;
    width: 6em;
    color: #444;
}

#options .slider {
    padding-left: 0;
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none
}

#options .options-section {
    padding-bottom: 1em;
}

/* FPS counter */
#fps-counter {
    font-family: monospace;
    font-size: 0.8em;
    color: #444;
}

/* Layers */
#layers {
    max-height: 100%;
    overflow: hidden;
}

#layers-container {
    max-height: 100vh;
    position: relative;
    padding-bottom: 6em;
}

#layers-items {
    max-height: 100%;
    overflow-y: auto;
}

#layers-btn {
    display: none;
}

.layers-item {
    cursor: pointer;
    font-size: 0.9em;
    user-select: none;
}

.layers-item.layers-item-invisible {
    opacity: 0.6
}

.layers-item-color {
    display: inline-block;
    width: 1em;
    height: 1em;
    position: relative;
    top: 2px;
    user-select: none;
}

.layers-item-name {
    padding: 0 0 0 0.3em;
    display: inline-block;
    user-select: none;
}

/* Open local */
#open-local-file-dropdown {
    min-width: 350px;
    padding: 0.5em;
}

#open-local-file-dropdown .custom-file {
    overflow: hidden;
}

#open-local-error {
    color: #c88;
}
